import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {FormsModule} from '@angular/forms' ;
import { UEditorModule, UEditorConfig } from 'ngx-ueditor';
import {HttpModule} from '@angular/http' ;

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { RegistComponent } from './components/regist/regist.component';
import { LoginComponent } from './components/login/login.component';
import { HeadComponent } from './components/head/head.component';
import { FootComponent } from './components/foot/foot.component';
import { SetUserImgComponent } from './components/set-user-img/set-user-img.component';
import { SetUserMessageComponent } from './components/set-user-message/set-user-message.component';
import { SetUserSafeComponent } from './components/set-user-safe/set-user-safe.component';
import { PublishMyGowithComponent } from './components/publish-my-gowith/publish-my-gowith.component';
import { PublishMyTravelnoteComponent } from './components/publish-my-travelnote/publish-my-travelnote.component';
import { PublishGowithFormComponent } from './components/publish-gowith-form/publish-gowith-form.component';
import { GowithDetailComponent } from './components/gowith-detail/gowith-detail.component';
import { Index1Component } from './components/index1/index1.component';
import { PublishTravelnoteComponent } from './components/publish-travelnote/publish-travelnote.component';
import { TravelnoteDetailComponent } from './components/travelnote-detail/travelnote-detail.component';
import { Index2Component } from './components/index2/index2.component';
import { MainComponent } from './components/main/main.component';
import { SetComponent } from './components/set/set.component';
import { UserService } from './services/user/user.service';
import { PublishMyComponent } from './components/publish-my/publish-my.component';
import { CommonModule } from '@angular/common';
import { FileUploadModule } from '../../node_modules/_ng2-file-upload@1.2.1@ng2-file-upload';
import { TournoteService } from './services/tour/tournote.service';


@NgModule({
  declarations: [
    AppComponent,
    RegistComponent,
    LoginComponent,
    HeadComponent,
    FootComponent,
    SetUserImgComponent,
    SetUserMessageComponent,
    SetUserSafeComponent,
    PublishMyGowithComponent,
    PublishMyTravelnoteComponent,
    PublishGowithFormComponent,
    GowithDetailComponent,
    Index1Component,
    PublishTravelnoteComponent,
    TravelnoteDetailComponent,
    Index2Component,
    MainComponent,
    SetComponent,
    PublishMyComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    UEditorModule,
    AppRoutingModule,
    HttpModule,
    CommonModule,
    FileUploadModule
  ],
  providers: [
    UserService,
    UEditorConfig,
    TournoteService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
